<#function getJDBCType row>
  <#if row.type == 'TINYINT'>
    <#return (row.length == 1)?string('BIT', 'TINYINT')/>
  </#if>
  <#if row.type == 'DATETIME'>
    <#return 'TIMESTAMP'/>
  </#if>
  <#if row.type == 'INT'>
    <#return 'INTEGER'/>
  </#if>
  <#if row.type == 'TEXT' || row.type == 'MEDIUMTEXT' || row.type == 'LONGTEXT'>
    <#return 'LONGVARCHAR' />
  </#if>
  <#if row.type == 'TINYBLOB' || row.type == 'BLOB' || row.type == 'MEDIUMBLOB' || row.type == 'LONGBLOB'>
    <#return 'BLOB' />
  </#if>
  <#return row.type />
</#function>
